<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name=viewport content="with=device-width,initial-scale=1.0">
<link href="resource/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="resource/css/basic.css" rel="stylesheet">
<script src="resource/js/jquery.min.js"></script>
<script src="resource/js/user.js"></script>
<script src="resource/bootstrap/js/bootstrap.min.js"></script>
<script>
	var $nowTim = $('#nowTime');
	$(function() {
		$('#loginout').click(logout);
		$('#passwordUpdate').click(changePasswordByAdmin);
		$nowTime = $('#nowTime');
		nowDate();
		setInterval(nowDate, 1000);
	});
	function nowDate() {
		var now = new Date().toLocaleString();
		$nowTime.text(now);
	}
</script>
<title>四川交通职业技术学院在线教育后台管理系统</title>
</head>
<body>
	<nav class="navbar navbar-primary navbar-fixed-top" role="invigation">
		<div class="navbar-header">
			<img class="img-responsive" src="resource/image/header3.png" />
		</div>
		<ul class="user nav navbar-nav navbar-right">
			<li><a href="#">欢迎您，${admin.petName }</a></li>
			<li><a id="loginout" href="#" data-roles="admin"><i
					class="glyphicon glyphicon-off"></i> 退出登录 </a></li>
		</ul>
	</nav>
	<div>
		<nav class="col-md-2">
			<div class="row panel panel-default">
				<div class="panel-body">
					<div class="list-group">
						<a class="list-group-item active" href="admin">首页导航</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="admin/studentMajor">专业管理 <span
							class="badge">2</span></a> <a class="list-group-item"
							href="admin/publishDepartment">系别添加</a> <a
							class="list-group-item" href="admin/publishMajor">专业添加</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="admin/lessonType">课程类别<span
							class="badge">2</span></a> <a class="list-group-item"
							href="admin/publishOneType">课程一级类添加</a> <a
							class="list-group-item" href="admin/publishTwoType">课程二级类添加</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="admin/userRoles">角色权限管理</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="#">公告发布</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="#">系统信息<span class="badge">1</span></a>
						<a class="list-group-item" href="#">异常信息</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="admin/systemInfo">性能监测</a>
					</div>
				</div>
			</div>
		</nav>
		<div class="col-md-10">
			<div class="row panel panel-default">
				<div class="panel-heading">
					<ol class="breadcrumb">
						<li class="active"><i class="glyphicon glyphicon-home"></i>
							首页导航</li>
					</ol>
				</div>
				<div class="panel-body">
					<div class="row">
						<div class="col-sm-6">
							<div class="panel panel-default">
								<div class="panel-heading">平台信息</div>
								<div class="panel-body">
									<dl class="dl-horizontal">
										<dt>网站名称</dt>
										<dd>School Education</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>平台版本</dt>
										<dd>v1.0</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>开发语言</dt>
										<dd>JAVA 8</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>数据库</dt>
										<dd>MYSQL5.6</dd>
									</dl>
								</div>
							</div>
						</div>
						<div class="col-sm-6">
							<div class="panel panel-default">
								<div class="panel-heading">管理员</div>
								<div class="panel-body">
									<dl class="dl-horizontal">
										<dt>当前账号</dt>
										<dd>${admin.userNum }</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>用户名</dt>
										<dd>${admin.petName }</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>密码</dt>
										<dd>
											<button class="btn btn-link btn-xs" type="button" data-toggle="modal" data-target="#myModal">更改密码</button>
										</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>最后登录</dt>
										<dd>${admin.lastLoginDate }</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt></dt>
										<dd></dd>
									</dl>
									<div class="modal fade" id="myModal" tabindex="-1"
										role="dialog" aria-labelledby="myModalLabel"
										aria-hidden="true">
										<div class="modal-dialog">
											<div class="modal-content">
												<div class="modal-header">
													<button type="button" class="close" data-dismiss="modal"
														aria-hidden="true">&times;</button>
													<h4 class="modal-title">更改密码</h4>
												</div>
												<div class="modal-body">
													<div class="form-group">
														<label class="col-sm-3 control-lable text-right">旧密码：</label>
														<div class="col-sm-9">
															<input class="form-control" name="oldpassword" type="text" />
														</div>
													</div>
													<br /><br />
													<div class="form-group">
														<label class="col-sm-3 control-lable text-right">输入密码：</label>
														<div class="col-sm-9">
															<input class="form-control" name="password" type="text" />
														</div>
													</div>
													<br /><br />
													<div class="form-group">
														<label class="col-sm-3 control-lable text-right">重新输入：</label>
														<div class="col-sm-9">
															<input class="form-control" name="surepassword" type="text" />
														</div>
													</div>
													<br /><br />
												</div>
												<div class="modal-footer">
													<button type="button" class="btn btn-default"
														data-dismiss="modal">取消</button>
													<button id="passwordUpdate" type="button"
														class="btn btn-primary">提交</button>
												</div>
											</div>
											<!-- /.modal-content -->
										</div>
										<!-- /.modal-dialog -->
									</div>
									<!-- /.modal -->
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-6">
							<div class="panel panel-default">
								<div class="panel-heading">网站</div>
								<div class="panel-body">
									<dl class="dl-horizontal">
										<dt>网站域名</dt>
										<dd>www.beliefsky.com</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>网站IP</dt>
										<dd>127.0.0.1</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>当前编码</dt>
										<dd>UTF-8</dd>
									</dl>
								</div>
							</div>
						</div>
						<div class="col-sm-6">
							<div class="panel panel-default">
								<div class="panel-heading">服务器</div>
								<div class="panel-body">
									<dl class="dl-horizontal">
										<dt>服务器时间</dt>
										<dd id="nowTime" class="text-danger">xxxx-xx-xx xx:xx:xx</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>页面缓存：</dt>
										<dd>开启</dd>
										<dt>
											<br />
										</dt>
										<dd>
											<br />
										</dd>
										<dt>GZIP压缩：</dt>
										<dd>开启</dd>
									</dl>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
</body>
</html>